280. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:05 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

280.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesflex_grid.phtml2019-10-28 04:56:52 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesflex_grid.phtml2021-03-20 02:23:14 +0000

280.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged11632
Changed1032
Inserted00
Removed00

280.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

280.4 Active regular expressions

No regular expressions were active.

280.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 $_productCollection = $block->getLoadedProductCollection(); 18 $_productCollection = $block->getLoadedProductCollection();
19 $_helper = $this->helper('Magento\Catalog\Helper\Output'); 19 $_helper = $this->helper('Magento\Catalog\Helper\Output');
20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
22 $review_model = $_portohelper->getModel('\Magento\Review\Model\Review'); 22 $review_model = $_portohelper->getModel('\Magento\Review\Model\Review');
23 $_category_config = $_portohelper->getConfig('porto_settings/category'); 23 $_category_config = $_portohelper->getConfig('porto_settings/category');
24 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 24 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
25 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 25 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
26 $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 26 $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
27  27 
28 $aspect_ratio = $this->getData("aspect_ratio"); 28 $aspect_ratio = $this->getData("aspect_ratio");
29 if($aspect_ratio == null) { 29 if($aspect_ratio == null) {
30     $aspect_ratio = $_category_config['aspect_ratio']; 30     $aspect_ratio = $_category_config['aspect_ratio'];
31 } 31 }
32 $image_width = $this->getData("image_width"); 32 $image_width = $this->getData("image_width");
33 if(!$image_width) { 33 if(!$image_width) {
34     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 34     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
35 } 35 }
36 $image_height = $this->getData("image_height"); 36 $image_height = $this->getData("image_height");
37 if($aspect_ratio) 37 if($aspect_ratio)
38     $image_height = $image_width; 38     $image_height = $image_width;
39 if(!$image_height) { 39 if(!$image_height) {
40     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;   40     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
41 } 41 }
42 $move_actions = $this->getData("move_actions"); 42 $move_actions = $this->getData("move_actions");
43 if($move_actions == null) { 43 if($move_actions == null) {
44     $move_actions = $_category_grid_config['move_actions']; 44     $move_actions = $_category_grid_config['move_actions'];
45 } 45 }
46 $column_count = $this->getData("column_count"); 46 $column_count = $this->getData("column_count");
47 if($column_count == null) { 47 if($column_count == null) {
48     $column_count = 4; 48     $column_count = 4;
49 } 49 }
50 ?> 50 ?>
51 <?php if (!$_productCollection->count()): ?> 51 <?php if (!$_productCollection->count()): ?>
52     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 52     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
53 <?php else: ?> 53 <?php else: ?>
54     <?php 54     <?php
55     $viewMode = 'grid'; 55     $viewMode = 'grid';
56     $image = 'category_page_grid'; 56     $image = 'category_page_grid';
57     $hover_image = 'category_page_grid-hover'; 57     $hover_image = 'category_page_grid-hover';
58     $showDescription = false; 58     $showDescription = false;
59     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 59     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
60     ?> 60     ?>
61     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> flex-grid products-<?php echo $viewMode; ?>"> 61     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> flex-grid products-<?php echo $viewMode; ?>">
62         <?php $iterator = 1; ?> 62         <?php $iterator = 1; ?>
63         <ol class="filterproducts products list items product-items <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>"> 63         <ol class="filterproducts products list items product-items
">
64             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 64             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
65             <?php foreach ($_productCollection as $_product): ?> 65             <?php foreach ($_productCollection as $_product): ?>
66                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?> 66                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
67                 <div class="product-item-info" data-container="product-grid"> 67                 <div class="product-item-info" data-container="product-grid">
68                     <?php // Product Image ?> 68                     <?php // Product Image ?>
69                     <div class="product photo product-item-photo"> 69                     <div class="product photo product-item-photo">
70                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 70                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
71                         <?php 71                         <?php
72                             if($aspect_ratio) 72                             if($aspect_ratio)
73                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 73                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
74                             else 74                             else
75                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 75                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
76                             $productImageUrl = $productImage->getUrl(); 76                             $productImageUrl = $productImage->getUrl();
77                         ?> 77                         ?>
78                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" alt="
"/>
 78                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
79                         <?php if($_category_config['alternative_image']): ?> 79                         <?php if($_category_config['alternative_image']): ?>
80                         <?php 80                         <?php
81                             if($aspect_ratio) 81                             if($aspect_ratio)
82                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 82                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
83                             else 83                             else
84                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 84                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
85                             $productHoverImageUrl = $productHoverImage->getUrl(); 85                             $productHoverImageUrl = $productHoverImage->getUrl();
86                         ?> 86                         ?>
87                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 87                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
88                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="
"/>
 88                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
89                             <?php endif; ?> 89                             <?php endif; ?>
90                         <?php endif; ?> 90                         <?php endif; ?>
91                         </a> 91                         </a>
92                         <?php 92                         <?php
93                             $product_label = ""; 93                             $product_label = "";
94                             if($_product_label_config['sale_label']) { 94                             if($_product_label_config['sale_label']) {
95                                 $orgprice = $_product->getPrice(); 95                                 $orgprice = $_product->getPrice();
96                                 $specialprice = $_product->getSpecialPrice(); 96                                 $specialprice = $_product->getSpecialPrice();
97                                 $specialfromdate = $_product->getSpecialFromDate(); 97                                 $specialfromdate = $_product->getSpecialFromDate();
98                                 $specialtodate = $_product->getSpecialToDate(); 98                                 $specialtodate = $_product->getSpecialToDate();
99                                 $today = time(); 99                                 $today = time();
100                                 if(!$specialprice) 100                                 if(!$specialprice)
101                                     $specialprice = $orgprice; 101                                     $specialprice = $orgprice;
102                                 if($specialprice < $orgprice) { 102                                 if($specialprice < $orgprice) {
103                                     if((is_null($specialfromdate) && is_null($specialtodate)) || ($today >= strtotime($specialfromdate) && is_null($specialtodate)) || ($today <= strtotime($specialtodate) && is_null($specialfromdate)) || ($today >= strtotime($specialfromdate) && $today <= strtotime($specialtodate))){ 103                                     if((is_null($specialfromdate) && is_null($specialtodate)) || ($today >= strtotime($specialfromdate) && is_null($specialtodate)) || ($today <= strtotime($specialtodate) && is_null($specialfromdate)) || ($today >= strtotime($specialfromdate) && $today <= strtotime($specialtodate))){
104                                         if($_product_label_config['sale_label_percent']) { 104                                         if($_product_label_config['sale_label_percent']) {
105                                             $save_percent = 100-round(($specialprice/$orgprice)*100); 105                                             $save_percent = 100-round(($specialprice/$orgprice)*100);
106                                             $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>'; 106                                             $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>';
107                                         } else { 107                                         } else {
108                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 108                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
109                                         } 109                                         }
110                                     } 110                                     }
111                                 } 111                                 }
112                             } 112                             }
113                             if($_product_label_config['new_label']) { 113                             if($_product_label_config['new_label']) {
114                                 $now = date("Y-m-d"); 114                                 $now = date("Y-m-d");
115                                 $newsFrom= substr($_product->getData('news_from_date'),0,10); 115                                 $newsFrom= substr($_product->getData('news_from_date'),0,10);
116                                 $newsTo=  substr($_product->getData('news_to_date'),0,10); 116                                 $newsTo=  substr($_product->getData('news_to_date'),0,10);
117                                  117 
118                                 if ($newsTo != '' || $newsFrom != ''){ 118                                 if ($newsTo != '' || $newsFrom != ''){
119                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 119                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
120                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 120                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
121                                     } 121                                     }
122                                 } 122                                 }
123                             } 123                             }
124                             if($product_label) 124                             if($product_label)
125                                 echo '<div class="product-labels">'.$product_label.'</div>'; 125                                 echo '<div class="product-labels">'.$product_label.'</div>';
126                         ?> 126                         ?>
127                         <?php if($_category_config['actions'] && $move_actions): ?> 127                         <?php if($_category_config['actions'] && $move_actions): ?>
128                         <div class="product-item-inner"> 128                         <div class="product-item-inner">
129                             <div class="product actions product-item-actions"> 129                             <div class="product actions product-item-actions">
130                                 <div class="actions-primary"> 130                                 <div class="actions-primary">
131                                     <?php if ($_product->isSaleable()): ?> 131                                     <?php if ($_product->isSaleable()): ?>
132                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 132                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
133                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 133                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
134                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 134                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
135                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 135                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
136                                             <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> 136 
137                                                 <div class="qty-box">    
138                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>    
139                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>    
140                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>    
141                                                 </div>    
142                                             <?php endif;?>    
143                                             <?php echo $block->getBlockHtml('formkey')?> 137                                             <?php echo $block->getBlockHtml('formkey')?>
144                                             <button type="submit" 138                                             <button type="submit"
145                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 139                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
146                                                     class="action tocart primary"> 140                                                     class="action tocart primary">
147                                                 <span><?php echo __('Add to Cart') ?></span> 141                                                 <span><?php echo __('Add to Cart') ?></span>
148                                             </button> 142                                             </button>
149                                         </form> 143                                         </form>
150                                     <?php else: ?> 144                                     <?php else: ?>
151                                         <?php if ($_product->getIsSalable()): ?> 145                                         <?php if ($_product->getIsSalable()): ?>
152                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 146                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
153                                         <?php else: ?> 147                                         <?php else: ?>
154                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 148                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
155                                         <?php endif; ?> 149                                         <?php endif; ?>
156                                     <?php endif; ?> 150                                     <?php endif; ?>
157                                 </div> 151                                 </div>
158                                 <?php if ($block->getMode() == 'grid'): ?> 152                                 <?php if ($block->getMode() == 'grid'): ?>
159                                 <?php if($_category_config['addtowishlist']): ?> 153                                 <?php if($_category_config['addtowishlist']): ?>
160                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 154                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
161                                     <a href="#" 155                                     <a href="#"
162                                        class="action towishlist actions-secondary" 156                                        class="action towishlist actions-secondary"
163                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 157                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
164                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 158                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
165                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 159                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
166                                        data-action="add-to-wishlist" 160                                        data-action="add-to-wishlist"
167                                        role="button"> 161                                        role="button">
168                                         <span><?php echo __('Add to Wish List') ?></span> 162                                         <span><?php echo __('Add to Wish List') ?></span>
169                                     </a> 163                                     </a>
170                                 <?php endif; ?> 164                                 <?php endif; ?>
171                                 <?php endif; ?> 165                                 <?php endif; ?>
172                                 <?php endif; ?> 166                                 <?php endif; ?>
173                                 <?php if($_category_config['addtocompare']): ?> 167                                 <?php if($_category_config['addtocompare']): ?>
174                                 <?php 168                                 <?php
175                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 169                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
176                                 ?> 170                                 ?>
177                                 <a href="#" 171                                 <a href="#"
178                                    class="action tocompare actions-secondary" 172                                    class="action tocompare actions-secondary"
179                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 173                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
180                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 174                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
181                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 175                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
182                                    role="button"> 176                                    role="button">
183                                     <span><?php echo __('Add to Compare') ?></span> 177                                     <span><?php echo __('Add to Compare') ?></span>
184                                 </a> 178                                 </a>
185                                 <?php endif; ?> 179                                 <?php endif; ?>
186                             </div> 180                             </div>
187                         </div> 181                         </div>
188                         <?php endif; ?> 182                         <?php endif; ?>
189                     </div> 183                     </div>
190                     <div class="product details product-item-details"> 184                     <div class="product details product-item-details">
191                         <?php 185                         <?php
192                             $_productNameStripped = $block->stripTags($_product->getName(), null, true); 186                             $_productNameStripped = $block->stripTags($_product->getName(), null, true);
193                         ?> 187                         ?>
194                         <?php if(!$_category_grid_config['move_title']):?> 188                         <?php if(!$_category_grid_config['move_title']):?>
195                             <strong class="product name product-item-name"> 189                             <strong class="product name product-item-name">
196                                 <a class="product-item-link" 190                                 <a class="product-item-link"
197                                    href="<?php echo $_product->getProductUrl() ?>"> 191                                    href="<?php echo $_product->getProductUrl() ?>">
198                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 192                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
199                                 </a> 193                                 </a>
200                             </strong> 194                             </strong>
201                         <?php endif;?> 195                         <?php endif;?>
202                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 196                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
203                         <?php if($_category_config['rating_star']): ?> 197                         <?php if($_category_config['rating_star']): ?>
204                         <?php 198                         <?php
205                             $review_model->getEntitySummary($_product); 199                             $review_model->getEntitySummary($_product);
206                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 200                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
207                         ?> 201                         ?>
208                         <?php if($review_html): ?> 202                         <?php if($review_html): ?>
209                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 203                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
210                         <?php else: ?> 204                         <?php else: ?>
211                         <div class="product-reviews-summary short"> 205                         <div class="product-reviews-summary short">
212                             <div class="rating-summary"> 206                             <div class="rating-summary">
213                                 <span class="label"><span>Rating:</span></span> 207                                 <span class="label"><span>Rating:</span></span>
214                                 <div class="rating-result" title="0%"> 208                                 <div class="rating-result" title="0%">
215                                     <span style="width:0"><span>0%</span></span> 209                                     <span style="width:0"><span>0%</span></span>
216                                 </div> 210                                 </div>
217                             </div> 211                             </div>
218                         </div> 212                         </div>
219                         <?php endif; ?> 213                         <?php endif; ?>
220                         <?php endif; ?> 214                         <?php endif; ?>
221                         <?php if($_category_grid_config['move_title']):?> 215                         <?php if($_category_grid_config['move_title']):?>
222                             <strong class="product name product-item-name"> 216                             <strong class="product name product-item-name">
223                                 <a class="product-item-link" 217                                 <a class="product-item-link"
224                                    href="<?php echo $_product->getProductUrl() ?>"> 218                                    href="<?php echo $_product->getProductUrl() ?>">
225                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 219                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
226                                 </a> 220                                 </a>
227                             </strong> 221                             </strong>
228                         <?php endif;?> 222                         <?php endif;?>
229                         <?php if ($showDescription):?> 223                         <?php if ($showDescription):?>
230                             <div class="product description product-item-description"> 224                             <div class="product description product-item-description">
231                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 225                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
232                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 226                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
233                                    class="action more"><?php echo __('Learn More') ?></a> 227                                    class="action more"><?php echo __('Learn More') ?></a>
234                             </div> 228                             </div>
235                         <?php endif; ?> 229                         <?php endif; ?>
236                         <?php if($_category_config['product_price']): ?> 230                         <?php if($_category_config['product_price']): ?>
237                         <?php echo $block->getProductPrice($_product) ?> 231                         <?php echo $block->getProductPrice($_product) ?>
238                         <?php endif; ?> 232                         <?php endif; ?>
239                         <?php echo $block->getProductDetailsHtml($_product); ?> 233                         <?php echo $block->getProductDetailsHtml($_product); ?>
240                          234 
241                         <?php if($_category_config['actions'] && !$move_actions): ?> 235                         <?php if($_category_config['actions'] && !$move_actions): ?>
242                         <div class="product-item-inner"> 236                         <div class="product-item-inner">
243                             <div class="product actions product-item-actions"> 237                             <div class="product actions product-item-actions">
244                                 <?php if ($block->getMode() == 'grid'): ?> 238                                 <?php if ($block->getMode() == 'grid'): ?>
245                                 <?php if($_category_config['addtowishlist']): ?> 239                                 <?php if($_category_config['addtowishlist']): ?>
246                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 240                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
247                                     <a href="#" 241                                     <a href="#"
248                                        class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" 242                                        class="action towishlist actions-secondary"
249                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 243                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
250                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 244                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
251                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 245                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
252                                        data-action="add-to-wishlist" 246                                        data-action="add-to-wishlist"
253                                        role="button"> 247                                        role="button">
254                                         <span><?php echo __('Add to Wish List') ?></span> 248                                         <span><?php echo __('Add to Wish List') ?></span>
255                                     </a> 249                                     </a>
256                                 <?php endif; ?> 250                                 <?php endif; ?>
257                                 <?php endif; ?> 251                                 <?php endif; ?>
258                                 <?php endif; ?> 252                                 <?php endif; ?>
259                                 <div class="actions-primary"> 253                                 <div class="actions-primary">
260                                     <?php if ($_product->isSaleable()): ?> 254                                     <?php if ($_product->isSaleable()): ?>
261                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 255                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
262                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 256                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
263                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 257                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
264                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 258                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
265                                             <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> 259 
266                                                 <div class="qty-box">    
267                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>    
268                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>    
269                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>    
270                                                 </div>    
271                                             <?php endif;?>    
272                                             <?php echo $block->getBlockHtml('formkey')?> 260                                             <?php echo $block->getBlockHtml('formkey')?>
273                                             <button type="submit" 261                                             <button type="submit"
274                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 262                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
275                                                     class="action tocart primary"> 263                                                     class="action tocart primary">
276                                                 <span><?php echo __('Add to Cart') ?></span> 264                                                 <span><?php echo __('Add to Cart') ?></span>
277                                             </button> 265                                             </button>
278                                         </form> 266                                         </form>
279                                     <?php else: ?> 267                                     <?php else: ?>
280                                         <?php if ($_product->getIsSalable()): ?> 268                                         <?php if ($_product->getIsSalable()): ?>
281                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 269                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
282                                         <?php else: ?> 270                                         <?php else: ?>
283                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 271                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
284                                         <?php endif; ?> 272                                         <?php endif; ?>
285                                     <?php endif; ?> 273                                     <?php endif; ?>
286                                 </div> 274                                 </div>
287                                 <?php if($_category_config['addtocompare']): ?> 275                                 <?php if($_category_config['addtocompare']): ?>
288                                 <?php 276                                 <?php
289                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 277                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
290                                 ?> 278                                 ?>
291                                 <a href="#" 279                                 <a href="#"
292                                    class="action tocompare actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" 280                                    class="action tocompare actions-secondary"
293                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 281                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
294                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 282                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
295                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 283                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
296                                    role="button"> 284                                    role="button">
297                                     <span><?php echo __('Add to Compare') ?></span> 285                                     <span><?php echo __('Add to Compare') ?></span>
298                                 </a> 286                                 </a>
299                                 <?php endif; ?> 287                                 <?php endif; ?>
300                             </div> 288                             </div>
301                         </div> 289                         </div>
302                         <?php endif; ?> 290                         <?php endif; ?>
303                     </div> 291                     </div>
304                 </div> 292                 </div>
305                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?> 293                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?>
306             <?php endforeach; ?> 294             <?php endforeach; ?>
307         </ol> 295         </ol>
308     </div> 296     </div>
309     <script type="text/javascript"> 297     <script type="text/javascript">
310         require([ 298         require([
311             'jquery' 299             'jquery'
312         ], function ($) { 300         ], function ($) {
313             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); 301             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n');
314             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); 302             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
315             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); 303             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n');
316             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); 304             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
317             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); 305             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n');
318             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); 306             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
319             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); 307             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n');
320             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); 308             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
321             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); 309             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n');
322             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); 310             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
323             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); 311             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n');
324             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); 312             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
325             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); 313             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n');
326             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); 314             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
327         }); 315         });
328     </script> 316     </script>
329     <?php if (!$block->isRedirectToCartEnabled()) : ?> 317     <?php if (!$block->isRedirectToCartEnabled()) : ?>
330         <script type="text/x-magento-init"> 318         <script type="text/x-magento-init">
331         { 319         {
332             "[data-role=tocart-form], .form.map.checkout": { 320             "[data-role=tocart-form], .form.map.checkout": {
333                 "catalogAddToCart": {} 321                 "catalogAddToCart": {}
334             } 322             }
335         } 323         }
336         </script> 324         </script>
337     <?php endif; ?> 325     <?php endif; ?>
338 <?php endif; ?> 326 <?php endif; ?>